Scheduler for WinRT > Features > Appointments > Calling the Edit Appointment Dialog in Code |
The code below is taken from the DefaultView sample and shows calling an Edit Appointment Dialog in code.
When a user clicks the "Add" button in the application, the Edit Appointment Dialog appears:
C# |
Copy Code
|
---|---|
private void Add_Click(object sender, RoutedEventArgs e) { sched1.NewAppointmentDialog(); } |
You can find the full sample in the Schedule Samples in the ComponentOne Samples folder:
C:\Users\YourUserName\Documents\Documents\ComponentOne Samples\WinRT XAML Phone\C1.Xaml.Schedule\CS\ScheduleSamples